import request from '@/config/axios'

export const getInformationEtc = (data: any) => {
  return request.post({
    url: `/app/base/getInformationEtc?userName=${data.username}&type=${data.type}`,
    data
  })
}

export const getQiniuToken = () => {
  return request.get({
    url: `/app/base/qiniu/token`
  })
}

export const uploadFile = (data: any) => {
  return request.post({
    url: `https://up-z0.qiniup.com/`,
    headersType: 'multipart/form-data',
    data
  })
}

export const cardRecognition = (data: any) => {
  return request.post({
    url: `/app/base/cardRecognition`,
    headersType: 'multipart/form-data',
    data
  })
}

export const arcFace = (data: any) => {
  return request.post({
    url: `/app/base/arcFace`,
    headersType: 'multipart/form-data',
    data
  })
}

export const docSign = (data: any) => {
  return request.post({
    url: `/app/base/docSign`,
    headersType: 'multipart/form-data',
    data
  })
}
